﻿package mortal.game.view.ranking.renderer
{
    import Message.Public.*;
    import __AS3__.vec.*;
    import com.gengine.utils.*;
    import com.mui.controls.*;
    import com.mui.core.*;
    import com.mui.display.*;
    import com.mui.utils.*;
    import extend.language.*;
    import flash.events.*;
    import flash.text.*;
    import mortal.common.*;
    import mortal.common.global.*;
    import mortal.game.cache.*;
    import mortal.game.events.*;
    import mortal.game.mvc.*;
    import mortal.game.resource.*;
    import mortal.game.utils.*;
    import mortal.game.view.common.*;
    import mortal.game.view.platform.*;
    import mortal.game.view.platform.platformTencent.*;
    import mortal.game.view.ranking.util.*;
    import mortal.mvc.core.*;

    public class RankingDataCellRenderer extends GCellRenderer
    {
        private var _rank:GTextFiled;
        private var _upOrDownImg:GBitmap;
        private var _changeValue:GTextFiled;
        private var _info1:GTextFiled;
        private var _info2:GTextFiled;
        private var _info3:GTextFiled;
        private var _info4:GTextFiled;
        private var _info5:GTextFiled;
        private var _vipIcon:GImageBitmap;
        private var _yellowIcon:GImageBitmap;
        private var _bg:ScaleBitmap;
        private var _spliteLine:GBitmap;
        private var _infoSpr:GSprite;
        private var _rankingData:SToplist;
        private var _infoVec:Vector.<GTextFiled>;

        public function RankingDataCellRenderer()
        {
            this._infoVec = new Vector.<GTextFiled>;
            return;
        }// end function

        override protected function createDisposedChildrenImpl() : void
        {
            super.createDisposedChildrenImpl();
            this._bg = UIFactory.bg(0, 0, 461 - 4, 43, this, ImagesConst.RankingListBg);
            this._rank = UIFactory.gTextField("", 11, 7 + 3, 30, 20, this);
            this._vipIcon = UIFactory.gImageBitmap("", 0, 13 + 2 - 4, this);
            this._yellowIcon = UIFactory.gImageBitmap("", 0, 13 + 2 - 3, this);
            this._infoSpr = UICompomentPool.getUICompoment(GSprite);
            this.addChild(this._infoSpr);
            var _loc_1:* = GlobalStyle.textFormatPutong;
            this._info1 = UIFactory.gTextField("", 53, 7 + 3, 70, 20, this._infoSpr, _loc_1);
            this._info2 = UIFactory.gTextField("", 104, 7 + 3, 70, 20, this._infoSpr, _loc_1);
            this._info3 = UIFactory.gTextField("", 179, 7 + 3, 70, 20, this._infoSpr, _loc_1);
            this._info4 = UIFactory.gTextField("", 280, 7 + 3, 70, 20, this._infoSpr, _loc_1);
            this._info5 = UIFactory.gTextField("", 301, 7 + 3, 70, 20, this._infoSpr, _loc_1);
            this._infoVec.push(this._info1);
            this._infoVec.push(this._info2);
            this._infoVec.push(this._info3);
            this._infoVec.push(this._info4);
            this._infoVec.push(this._info5);
            this._upOrDownImg = UIFactory.gBitmap("", 390 + 3, 10 + 3 - 2, this._infoSpr);
            this._changeValue = UIFactory.gTextField("", 404 + 3, 7 + 3, 30, 20, this._infoSpr);
            this._spliteLine = UIFactory.gBitmap("", 404 - 12 + 1, 7 + 10, this._infoSpr);
            this.addListeners();
            return;
        }// end function

        private function addListeners() : void
        {
            Dispatcher.addEventListener(EventName.RankingLookSelfRankInfo, this.onLookSelfRankHandler);
            return;
        }// end function

        private function removeListeners() : void
        {
            Dispatcher.removeEventListener(EventName.RankingLookSelfRankInfo, this.onLookSelfRankHandler);
            return;
        }// end function

        override protected function initSkin() : void
        {
            var _loc_1:* = new GBitmap();
            var _loc_2:* = UIFactory.bg(0, 0, 462, 34, null, ImagesConst.SelectBg);
            this.setStyle("downSkin", _loc_2);
            this.setStyle("overSkin", _loc_2);
            this.setStyle("upSkin", _loc_1);
            this.setStyle("selectedDownSkin", _loc_2);
            this.setStyle("selectedOverSkin", _loc_2);
            this.setStyle("selectedUpSkin", _loc_2);
            return;
        }// end function

        private function getColor(param1:int) : String
        {
            var _loc_2:* = ColorConfig.instance.getItemColorString(ItemConfig.instance.getItemColorByCode(this._rankingData.entityId));
            return _loc_2;
        }// end function

        private function onClickHandler(event:MouseEvent) : void
        {
            Dispatcher.dispatchEvent(new DataEvent(EventName.RankingLookRoleInfo, this._rankingData));
            return;
        }// end function

        private function onLookSelfRankHandler(event:DataEvent) : void
        {
            if (this._rankingData.entityName == Cache.instance.role.entityInfo.name || this._rankingData.ownerName == Cache.instance.role.entityInfo.name)
            {
                this.selected = true;
            }
            return;
        }// end function

        private function clear() : void
        {
            var _loc_1:GTextFiled = null;
            this._rank.text = "";
            this._upOrDownImg.bitmapData = null;
            this._spliteLine.bitmapData = null;
            this._changeValue.text = "";
            this._info1.text = "";
            this._info2.text = "";
            this._info3.text = "";
            this._info4.text = "";
            this._info5.text = "";
            for each (_loc_1 in this._infoVec)
            {
                
                _loc_1.width = 70;
            }
            this._changeValue.x = 404;
            this._vipIcon.bitmapData = null;
            this._yellowIcon.imgUrl = "";
            this._infoSpr.x = 0;
            this._vipIcon.x = 35;
            return;
        }// end function

        public function get rankingData() : SToplist
        {
            return this._rankingData;
        }// end function

        override protected function disposeImpl(param1:Boolean = true) : void
        {
            super.disposeImpl(param1);
            this._rank.dispose(param1);
            this._upOrDownImg.dispose(param1);
            this._changeValue.dispose(param1);
            this._info1.dispose(param1);
            this._info2.dispose(param1);
            this._info3.dispose(param1);
            this._info4.dispose(param1);
            this._info5.dispose(param1);
            this._vipIcon.dispose(param1);
            this._bg.dispose();
            this._spliteLine.dispose();
            this._yellowIcon.dispose();
            this._infoSpr.dispose();
            this._rank = null;
            this._upOrDownImg = null;
            this._changeValue = null;
            this._info1 = null;
            this._info2 = null;
            this._info3 = null;
            this._info4 = null;
            this._info5 = null;
            this._vipIcon = null;
            this._bg = null;
            this._spliteLine = null;
            this._yellowIcon = null;
            this._infoSpr = null;
            this._infoVec.length = 0;
            this.removeListeners();
            return;
        }// end function

        override public function set data(param1:Object) : void
        {
            var _loc_2:int = 0;
            var _loc_3:String = null;
            var _loc_4:Array = null;
            var _loc_5:int = 0;
            var _loc_6:int = 0;
            var _loc_7:int = 0;
            var _loc_8:Object = null;
            var _loc_9:String = null;
            var _loc_10:String = null;
            super._data = param1;
            this.clear();
            if (param1 is SToplist)
            {
                this._rankingData = param1 as SToplist;
                this._rank.text = this._rankingData.rank + "";
                this._rank.textColor = GlobalStyle.colorPutongUint;
                if (this._rankingData.rank == 1)
                {
                    this._rank.textColor = GlobalStyle.colorChenUint;
                }
                if (this._rankingData.rank == 2)
                {
                    this._rank.textColor = GlobalStyle.colorFenHongUint;
                }
                if (this._rankingData.rank == 3)
                {
                    this._rank.textColor = GlobalStyle.colorLanUint;
                }
                _loc_2 = this._rankingData.rank - this._rankingData.lastRank;
                this._changeValue.text = Math.abs(_loc_2) + "";
                if (this._rankingData.lastRank == 0)
                {
                    this._changeValue.text = "";
                    this._spliteLine.bitmapData = GlobalClass.getBitmapData(ImagesConst.SplitLine7);
                }
                else if (_loc_2 < 0)
                {
                    this._upOrDownImg.bitmapData = GlobalClass.getBitmapData(ImagesConst.UpArrowBig);
                    this._changeValue.text = Math.abs(_loc_2) + "";
                    this._changeValue.textColor = GlobalStyle.colorLvUint;
                }
                else if (_loc_2 > 0)
                {
                    this._upOrDownImg.bitmapData = GlobalClass.getBitmapData(ImagesConst.DownArrowBig);
                    this._changeValue.text = Math.abs(_loc_2) + "";
                    this._changeValue.textColor = GlobalStyle.colorHongUint;
                }
                else
                {
                    this._changeValue.text = "";
                    this._spliteLine.bitmapData = GlobalClass.getBitmapData(ImagesConst.SplitLine7);
                }
                _loc_4 = RankingUtil.getPosInfoByRankType(this._rankingData.toplistType);
                _loc_5 = 40;
                _loc_6 = 350;
                if (this._rankingData.vip != 0)
                {
                    this._vipIcon.imgUrl = GameDefConfig.instance.getVipLevelIconUrl(this._rankingData.vip);
                    this._vipIcon.x = 35;
                }
                switch(this._rankingData.toplistType)
                {
                    case EToplistType._EToplistTypePlayerLevel:
                    {
                        this._info1.text = this._rankingData.entityName;
                        this._info1.width = 90;
                        this._info2.htmlText = GameDefConfig.instance.getECareerNameAddColoer(this._rankingData.propertyThree as int);
                        _loc_3 = this._rankingData.ownerName == "" ? ("--") : (this._rankingData.ownerName);
                        this._info3.text = _loc_3;
                        this._info4.text = this._rankingData.valueOne + "";
                        _loc_7 = 0;
                        while (_loc_7 < 4)
                        {
                            
                            this._infoVec[_loc_7].x = _loc_5 + int(_loc_6 / 4) * _loc_7;
                            _loc_7++;
                        }
                        this._info1.x = 62 + 13;
                        this._info2.x = 163;
                        this._info3.x = 210;
                        this._info3.width = 90;
                        this._info3.autoSize = TextFieldAutoSize.CENTER;
                        this._info4.x = 323;
                        this._vipIcon.visible = true;
                        if (PlatformConst.isQQ())
                        {
                            this._vipIcon.x = 35 - 3 + 36;
                            _loc_8 = JSON.parse(this._rankingData.proxyJs);
                            _loc_9 = _loc_8[EToplistProxy._EProxyTX];
                            if (_loc_9)
                            {
                                _loc_10 = PlatformTencentUtil.getQQVipIconUrl(_loc_9);
                                if (_loc_10)
                                {
                                    this._yellowIcon.imgUrl = _loc_10;
                                    this._yellowIcon.x = 35 - 3 + 40;
                                    this._vipIcon.x = 35 - 3;
                                }
                            }
                            this._infoSpr.x = 33;
                        }
                        break;
                    }
                    case EToplistType._EToplistTypePlayerCombat:
                    {
                        this._info1.text = this._rankingData.entityName;
                        this._info1.width = 90;
                        this._info2.htmlText = GameDefConfig.instance.getECareerNameAddColoer(this._rankingData.propertyThree as int);
                        _loc_3 = this._rankingData.ownerName == "" ? ("--") : (this._rankingData.ownerName);
                        this._info3.text = _loc_3;
                        this._info4.text = this._rankingData.valueOne + "";
                        this._info1.x = 62 + 13;
                        this._info2.x = 163;
                        this._info3.x = 210;
                        this._info3.width = 90;
                        this._info3.autoSize = TextFieldAutoSize.CENTER;
                        this._info4.x = 308;
                        this._vipIcon.visible = true;
                        if (PlatformConst.isQQ())
                        {
                            this._vipIcon.x = 35 - 3 + 36;
                            _loc_8 = JSON.parse(this._rankingData.proxyJs);
                            _loc_9 = _loc_8[EToplistProxy._EProxyTX];
                            if (_loc_9)
                            {
                                _loc_10 = PlatformTencentUtil.getQQVipIconUrl(_loc_9);
                                if (_loc_10)
                                {
                                    this._yellowIcon.imgUrl = _loc_10;
                                    this._yellowIcon.x = 35 - 3 + 40;
                                    this._vipIcon.x = 35 - 3;
                                }
                            }
                            this._infoSpr.x = 35;
                        }
                        break;
                    }
                    case EToplistType._EToplistTypePlayerSpriteCombat:
                    {
                        this._info1.text = this._rankingData.entityName;
                        this._info1.width = 90;
                        this._info1.x = 62;
                        this._info2.htmlText = GameDefConfig.instance.getECareerNameAddColoer(this._rankingData.propertyThree as int);
                        this._info2.x = 160;
                        _loc_3 = this._rankingData.ownerName == "" ? ("--") : (this._rankingData.ownerName);
                        this._info3.text = _loc_3;
                        this._info3.x = 218 - 8;
                        this._info3.width = 90;
                        this._info3.autoSize = TextFieldAutoSize.CENTER;
                        this._info4.text = this._rankingData.valueOne + "";
                        this._info4.x = 311;
                        break;
                    }
                    case EToplistType._EToplistTypeEquipWeapon:
                    {
                        this._info1.htmlText = HTMLUtil.addColor(this._rankingData.entityName, this.getColor(this._rankingData.entityId));
                        this._info1.width = 100;
                        this._info1.x = 40;
                        this._info2.htmlText = GameDefConfig.instance.getECareerNameAddColoer(this._rankingData.propertyThree as int);
                        this._info2.x = 138 + 18;
                        this._info3.text = this._rankingData.ownerName;
                        this._info3.width = 90;
                        this._info3.x = 233;
                        this._info4.text = this._rankingData.valueOne + "";
                        this._info4.x = 311 + 8;
                        this._vipIcon.x = 183 + 5 + 18;
                        this._vipIcon.visible = false;
                        break;
                    }
                    case EToplistType._EToplistTypeEquipArmor:
                    {
                        this._info1.htmlText = HTMLUtil.addColor(this._rankingData.entityName, this.getColor(this._rankingData.entityId));
                        this._info1.width = 90;
                        this._info1.x = 40;
                        this._info2.htmlText = GameDefConfig.instance.getECareerNameAddColoer(this._rankingData.propertyThree as int);
                        this._info2.x = 138 + 18;
                        this._info3.text = this._rankingData.ownerName;
                        this._info3.width = 90;
                        this._info3.x = 233;
                        this._info4.text = this._rankingData.valueOne + "";
                        this._info4.x = 311 + 8;
                        this._vipIcon.x = 183 + 5 + 18;
                        this._vipIcon.visible = false;
                        break;
                    }
                    case EToplistType._EToplistTypeEquipJewelry:
                    {
                        this._info1.htmlText = HTMLUtil.addColor(this._rankingData.entityName, this.getColor(this._rankingData.entityId));
                        this._info1.width = 90;
                        this._info1.x = 40;
                        this._info2.htmlText = GameDefConfig.instance.getECareerNameAddColoer(this._rankingData.propertyThree as int);
                        this._info2.x = 138 + 18;
                        this._info3.text = this._rankingData.ownerName;
                        this._info3.width = 90;
                        this._info3.x = 233;
                        this._info4.text = this._rankingData.valueOne + "";
                        this._info4.x = 311 + 8;
                        this._vipIcon.x = 183 + 5 + 18;
                        this._vipIcon.visible = false;
                        break;
                    }
                    case EToplistType._EToplistTypePetCombat:
                    {
                        this._info1.htmlText = PetUtil.getNameHtmlText2(this._rankingData.entityName, this._rankingData.reverse2);
                        this._info1.width = 90;
                        this._info1.x = 66;
                        this._info2.text = this._rankingData.valueTwo + "";
                        this._info2.x = 154;
                        this._info3.text = this._rankingData.ownerName;
                        this._info3.width = 90;
                        this._info3.x = 212;
                        this._info4.text = this._rankingData.valueOne + "";
                        this._info4.x = 315;
                        this._vipIcon.x = 184;
                        this._vipIcon.visible = false;
                        break;
                    }
                    case EToplistType._EToplistTypePetAptitude:
                    {
                        this._info1.htmlText = PetUtil.getNameHtmlText2(this._rankingData.entityName, this._rankingData.reverse2);
                        this._info1.width = 90;
                        this._info2.text = this._rankingData.valueThree + "";
                        this._info3.text = this._rankingData.ownerName + "";
                        this._info3.width = 90;
                        this._info4.text = this._rankingData.valueOne + "";
                        this._info5.text = this._rankingData.valueTwo + "";
                        _loc_7 = 0;
                        while (_loc_7 < 5)
                        {
                            
                            this._infoVec[_loc_7].x = _loc_5 + int(_loc_6 / 5) * _loc_7;
                            _loc_7++;
                        }
                        this._info1.x = this._info1.x + 25;
                        this._info2.x = this._info2.x + 25;
                        break;
                    }
                    case EToplistType._EToplistTypePetGrowth:
                    {
                        this._info1.text = this._rankingData.entityName;
                        this._info1.width = 90;
                        this._info1.x = 41;
                        this._info2.text = this._rankingData.ownerName;
                        this._info2.width = 90;
                        this._info2.x = 133;
                        this._info3.text = this._rankingData.valueOne + Language.getString(41322);
                        this._info3.x = 220 + 20;
                        this._info4.text = this._rankingData.valueTwo + "";
                        this._info4.x = 324 - 15;
                        this._vipIcon.x = 182 + 12;
                        this._vipIcon.visible = false;
                        break;
                    }
                    case EToplistType._EToplistTypeBeast:
                    {
                        this._info1.htmlText = PetUtil.getNameHtmlText2(this._rankingData.entityName, this._rankingData.reverse2);
                        this._info1.width = 90;
                        this._info2.text = this._rankingData.ownerName + "";
                        this._info2.width = 90;
                        this._info3.text = this._rankingData.valueTwo + "";
                        this._info4.text = this._rankingData.valueOne + "";
                        _loc_7 = 0;
                        while (_loc_7 < 4)
                        {
                            
                            this._infoVec[_loc_7].x = _loc_5 + int(_loc_6 / 4) * _loc_7;
                            _loc_7++;
                        }
                        this._info1.x = this._info1.x + 25;
                        this._info2.x = this._info2.x + 30;
                        this._info3.x = this._info3.x + 35;
                        this._info4.x = this._info4.x + 15;
                        break;
                    }
                    case EToplistType._EToplistTypeMountCombat:
                    {
                        this._info1.text = this._rankingData.entityName;
                        this._info1.width = 90;
                        this._info1.x = 38;
                        this._info2.text = this._rankingData.ownerName + "";
                        this._info2.width = 90;
                        this._info2.x = 154;
                        this._info3.text = this._rankingData.valueTwo + "";
                        this._info3.x = 255;
                        this._info4.text = this._rankingData.valueOne + "";
                        this._info4.x = 315;
                        this._vipIcon.x = 184 - 57;
                        this._vipIcon.visible = false;
                        break;
                    }
                    case EToplistType._EToplistTypeMountRank:
                    {
                        this._info1.text = this._rankingData.entityName;
                        this._info1.width = 90;
                        this._info1.x = 41;
                        this._info2.text = this._rankingData.ownerName + "";
                        this._info2.width = 90;
                        this._info2.x = 132;
                        this._info3.text = this._rankingData.valueOne + Language.getString(41322);
                        this._info3.x = 220 + 20;
                        this._info4.text = this._rankingData.valueTwo + "";
                        this._info4.x = 324 - 15;
                        this._vipIcon.x = 182 + 12;
                        this._vipIcon.visible = false;
                        break;
                    }
                    case EToplistType._EToplistTypeGuildLevel:
                    {
                        this._info1.text = this._rankingData.entityName;
                        this._info1.width = 90;
                        this._info2.text = this._rankingData.ownerName + "";
                        this._info2.width = 90;
                        this._info3.text = this._rankingData.valueThree + "";
                        this._info4.text = this._rankingData.valueOne + "";
                        _loc_7 = 0;
                        while (_loc_7 < 4)
                        {
                            
                            this._infoVec[_loc_7].x = _loc_5 + int(_loc_6 / 4) * _loc_7;
                            _loc_7++;
                        }
                        this._info1.x = this._info1.x + 20;
                        this._info2.x = this._info2.x + 20;
                        this._info3.x = this._info3.x + 15;
                        break;
                    }
                    case EToplistType._EToplistTypeGuildCombat:
                    {
                        this._info1.text = this._rankingData.entityName;
                        this._info1.x = 38;
                        this._info1.width = 90;
                        this._info1.autoSize = TextFieldAutoSize.CENTER;
                        this._info2.text = this._rankingData.ownerName + "";
                        this._info2.width = 90;
                        this._info2.x = 168 - 5;
                        this._info3.text = this._rankingData.valueThree + "";
                        this._info3.x = 252;
                        this._info4.text = this._rankingData.valueOne + "";
                        this._info4.x = 305;
                        this._vipIcon.x = 125 + 16 - 5;
                        this._vipIcon.visible = false;
                        break;
                    }
                    case EToplistType._EToplistTypeFashion:
                    {
                        this._info1.text = this._rankingData.entityName;
                        this._info1.width = 90;
                        this._info1.x = 41;
                        this._info2.htmlText = this._rankingData.ownerName + "";
                        this._info2.width = 90;
                        this._info2.x = 133;
                        this._info3.text = this._rankingData.valueOne + Language.getString(41322);
                        this._info3.x = 220 + 20;
                        this._info4.text = this._rankingData.valueTwo + "";
                        this._info4.x = 324 - 15;
                        this._vipIcon.x = 182 + 12;
                        this._vipIcon.visible = false;
                        break;
                    }
                    case EToplistType._EToplistTypeWing:
                    {
                        this._info1.text = this._rankingData.entityName;
                        this._info1.width = 90;
                        this._info1.x = 41;
                        this._info2.htmlText = this._rankingData.ownerName + "";
                        this._info2.width = 90;
                        this._info2.x = 133;
                        this._info3.text = this._rankingData.valueOne + Language.getString(41322);
                        this._info3.x = 220 + 20;
                        this._info4.text = this._rankingData.valueTwo + "";
                        this._info4.x = 324 - 15;
                        this._vipIcon.x = 182 + 10;
                        this._vipIcon.visible = false;
                        break;
                    }
                    case EToplistType._EToplistTypeWeapon:
                    {
                        this._info1.text = this._rankingData.entityName;
                        this._info1.width = 90;
                        this._info1.x = 41;
                        this._info2.htmlText = this._rankingData.ownerName + "";
                        this._info2.width = 90;
                        this._info2.x = 133;
                        this._info3.text = this._rankingData.valueOne + Language.getString(41322);
                        this._info3.x = 220 + 20;
                        this._info4.text = this._rankingData.valueTwo + "";
                        this._info4.x = 324 - 15;
                        this._vipIcon.x = 182 + 12;
                        this._vipIcon.visible = false;
                        break;
                    }
                    case EToplistType._EToplistTypeCopyDefence20:
                    {
                        this._info1.text = this._rankingData.entityName;
                        this._info1.width = 90;
                        this._info1.x = 62;
                        this._info2.htmlText = GameDefConfig.instance.getECareerNameAddColoer(this._rankingData.propertyThree as int);
                        this._info2.x = 156 + 22;
                        this._info3.text = this._rankingData.valueThree + "";
                        this._info3.x = 245;
                        this._info4.text = this._rankingData.valueOne + "";
                        this._info4.x = 322;
                        break;
                    }
                    case EToplistType._EToplistTypeCopyTower:
                    {
                        this._info1.text = this._rankingData.entityName;
                        this._info1.width = 90;
                        this._info2.htmlText = GameDefConfig.instance.getECareerNameAddColoer(this._rankingData.propertyThree as int);
                        this._info3.text = this._rankingData.valueThree + "";
                        this._info4.text = this._rankingData.valueOne + "";
                        _loc_7 = 0;
                        while (_loc_7 < 4)
                        {
                            
                            this._infoVec[_loc_7].x = _loc_5 + int(_loc_6 / 4) * _loc_7;
                            _loc_7++;
                        }
                        this._info1.x = this._info1.x + 28;
                        this._info2.x = this._info2.x + 28;
                        this._info3.x = this._info3.x + 14;
                        break;
                    }
                    case EToplistType._EToplistTypeCopyChallenge:
                    {
                        this._info1.text = this._rankingData.entityName;
                        this._info1.width = 90;
                        this._info2.htmlText = GameDefConfig.instance.getECareerNameAddColoer(this._rankingData.propertyThree as int);
                        this._info3.text = this._rankingData.valueThree + "";
                        this._info4.text = RankingUtil.getChallengeCopyName(this._rankingData.valueOne);
                        _loc_7 = 0;
                        while (_loc_7 < 4)
                        {
                            
                            this._infoVec[_loc_7].x = _loc_5 + int(_loc_6 / 4) * _loc_7;
                            _loc_7++;
                        }
                        this._info1.x = this._info1.x + 28;
                        this._info2.x = this._info2.x + 28;
                        this._info3.x = this._info3.x + 14;
                        this._info4.x = this._info4.x + 5;
                        break;
                    }
                    case EToplistType._EToplistTypeFightSoul:
                    {
                        this._info1.text = this._rankingData.entityName;
                        this._info1.width = 90;
                        this._info1.x = 41;
                        this._info2.htmlText = this._rankingData.ownerName + "";
                        this._info2.width = 90;
                        this._info2.x = 133;
                        this._info3.text = this._rankingData.valueOne + Language.getString(41322);
                        this._info3.x = 220 + 20;
                        this._info4.text = this._rankingData.valueTwo + "";
                        this._info4.x = 324 - 15;
                        this._vipIcon.x = 182 + 12;
                        this._vipIcon.visible = false;
                        break;
                    }
                    case EToplistType._EToplistTypeFightMethod:
                    {
                        this._info1.text = this._rankingData.entityName;
                        this._info1.width = 90;
                        this._info1.x = 41;
                        this._info2.htmlText = this._rankingData.ownerName + "";
                        this._info2.width = 90;
                        this._info2.x = 133;
                        this._info3.text = this._rankingData.valueOne + Language.getString(41322);
                        this._info3.x = 220 + 20;
                        this._info4.text = this._rankingData.valueTwo + "";
                        this._info4.x = 324 - 15;
                        this._vipIcon.x = 182 + 12;
                        this._vipIcon.visible = false;
                        break;
                    }
                    case EToplistType._EToplistTypeFightDragonSoul:
                    {
                        this._info1.text = this._rankingData.entityName;
                        this._info1.width = 90;
                        this._info1.x = 41;
                        this._info2.htmlText = this._rankingData.ownerName + "";
                        this._info2.width = 90;
                        this._info2.x = 133;
                        this._info3.text = this._rankingData.valueOne + Language.getString(41322);
                        this._info3.x = 220 + 20;
                        this._info4.text = this._rankingData.valueTwo + "";
                        this._info4.x = 324 - 15;
                        this._vipIcon.x = 182 + 12;
                        this._vipIcon.visible = false;
                        break;
                    }
                    default:
                    {
                        break;
                    }
                }
            }
            return;
        }// end function

    }
}
